package com.waitingresult.designpattern.behavioral.strategy.service;

import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

/**
 * @Author: WangShuai
 * @CreateTime: 2022-10-11  20:11
 * @Description:
 * @Version: 1.0
 */
@RestController(value = "测试")
@RequestMapping("test")
public class TestController {
    @Resource
    private UserIdEntityManager userIdEntityManager;

    @PostMapping(value = "one", name = "测试策略模式")
    public Object selectAll(Long id) {
        UserIdEntityService userIdEntityService = userIdEntityManager.getUserIdEntityService(id);
        userIdEntityService.exec(id);
        return "ok";
    }
}
